package com.gxa.usermanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.common.entity.usermange.VipUser;
import com.gxa.common.entity.usermange.VipUserAuditing;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VipUserMapper extends BaseMapper<VipUser> {

    Integer countUser();

    Integer updateVipUserStateMapper(@Param("id") Integer id,@Param("state")Integer state);

    Integer addVipUserAuditingMapper(VipUserAuditing vipUserAuditing);

    List<VipUser> findVipUserByMapper(@Param("start") Integer start,@Param("off") Integer off, @Param("id")Integer id,@Param("vipuserName")String vipuserName,@Param("vipuserPhone")String vipuserPhone,@Param("vipuserEmile")String vipuserEmile,@Param("state")Integer state);

    List<VipUser> findVipUserAllMapper(@Param("start") Integer start,@Param("off") Integer off);
    List<Long> queryIdsByNickname(String vipuserName);
}
